import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AdvertiserQuery, AdvertiserVo } from '@/api/advertisement/advertiser/types';

/**
 * 查询账号下的广告主列表
 * @param query
 * @returns {*}
 */

export const listData = (query?: AdvertiserQuery): AxiosPromise<AdvertiserVo[]> => {
  return request({
    url: '/oce/third/getAccountAdvertiserList',
    method: 'get',
    params: query
  });
};
export const updateAdvertiserAvatar = (data: number): AxiosPromise<AdvertiserVo> => {
  return request({
    url: '/oce/third/updateAdvertiserAvatar',
    method: 'post',
    data: data
  });
};
